﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;


namespace WebApplication1
{
    public class InventoryModel
    {
        /// <summary>
        /// 存货编码
        /// </summary>
        public string cinvcode { get; set; }
        /// <summary>
        /// 存货代码 
        /// </summary>
        public string cinvaddcode { get; set; }
        /// <summary>
        /// 存货名称
        /// </summary>
        public string cinvname { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string cinvstd { get; set; }
        /// <summary>
        /// 存货大类编码
        /// </summary>
        public string cinvccode { get; set; }
        /// <summary>
        /// 供应商编码
        /// </summary>
        public string cvencode { get; set; }
        /// <summary>
        /// 替换件 
        /// </summary>
        public string creplaceitem { get; set; }
        /// <summary>
        /// 货位编码
        /// </summary>
        public string cposition { get; set; }

        /// <summary>
        /// 是否内销
        /// </summary>
        public bool? bsale { get; set; } = false;
        /// <summary>
        /// 是否采购
        /// </summary>
        public bool? bpurchase { get; set; } = false;
        /// <summary>
        /// 是否自制 
        /// </summary>
        public bool? bself { get; set; } = false;
        /// <summary>
        /// 是否委外
        /// </summary>
        public bool? bproxyforeign { get; set; } = false;

        /// <summary>
        /// 是否外销
        /// </summary>
        public bool? bexpsale { get; set; } = false;
        /// <summary>
        /// 是否计划品
        /// </summary>
        public bool? bplaninv { get; set; } = false;
        /// <summary>
        /// 是否在制
        /// </summary>
        public bool? bproducing { get; set; } = false;
        /// <summary>
        /// 是否生产耗用
        /// </summary>
        public bool? bcomsume { get; set; } = false;

        /// <summary>
        /// 是否PTO模型
        /// </summary>
        public bool? bptomodel { get; set; } = false;
        /// <summary>
        /// 是否ATO模型
        /// </summary>
        public bool? batomodel { get; set; } = false;
        /// <summary>
        /// 是否应税劳务 
        /// </summary>
        public bool? bservice { get; set; } = false;
        /// <summary>
        /// 是否成套件
        /// </summary>
        public bool? baccessary { get; set; } = false;
        /// <summary>
        /// 是否选项类 
        /// </summary>
        public bool? bcheckitem { get; set; } = false;
        /// <summary>
        /// 设备
        /// </summary>
        public bool? bequipment { get; set; } = false;

        /// <summary>
        /// 税率
        /// </summary>
        public float? itaxrate { get; set; } = 17;
        public float? iinvweight { get; set; }
        public float? ivolume { get; set; }
        public float? iinvrcost { get; set; }
        public float? iinvsprice { get; set; }
        public float? iinvscost { get; set; }
        public float? iinvlscost { get; set; }
        public float? iinvncost { get; set; }
        /// <summary>
        /// 提前期
        /// </summary>
        public float? iinvadvance { get; set; } = 0;
        public float? iinvbatch { get; set; }
        public float? isafenum { get; set; }
        public float? itopsum { get; set; }
        public float? ilowsum { get; set; }
        public float? ioverstock { get; set; }
        public string cinvabc { get; set; }
        /// <summary>
        /// 是否保质期管理
        /// </summary>
        public bool? binvquality { get; set; } = false;
        /// <summary>
        /// 是否批次管理 
        /// </summary>
        public bool? binvbatch { get; set; } = false;
        /// <summary>
        /// 是否受托代销
        /// </summary>
        public bool? binventrust { get; set; } = false;
        /// <summary>
        /// 是否呆滞积压
        /// </summary>
        public bool? binvoverstock { get; set; } = false;
        /// <summary>
        /// 启用日期
        /// </summary>
        public DateTime dsdate { get; set; } = Convert.ToDateTime(DateTime.Now.ToShortDateString());
        /// <summary>
        /// 停用日期
        /// </summary>
        public DateTime? dedate { get; set; }
        /// <summary>
        /// 存货是否有自由项1
        /// </summary>
        public bool? bfree1 { get; set; }
        /// <summary>
        /// 存货是否有自由项2
        /// </summary>
        public bool? bfree2 { get; set; }
        /// <summary>
        /// 存货是否有自由项3
        /// </summary>
        public bool? bfree3 { get; set; }
        /// <summary>
        /// 存货是否有自由项4
        /// </summary>
        public bool? bfree4 { get; set; }
        /// <summary>
        /// 存货是否有自由项5
        /// </summary>
        public bool? bfree5 { get; set; }
        /// <summary>
        /// 存货是否有自由项6
        /// </summary>
        public bool? bfree6 { get; set; }
        /// <summary>
        /// 存货是否有自由项7
        /// </summary>
        public bool? bfree7 { get; set; }
        /// <summary>
        /// 存货是否有自由项8
        /// </summary>
        public bool? bfree8 { get; set; }
        /// <summary>
        /// 存货是否有自由项9
        /// </summary>
        public bool? bfree9 { get; set; }
        /// <summary>
        /// 存货是否有自由项10
        /// </summary>
        public bool? bfree10 { get; set; }
        public string cinvdefine1 { get; set; }
        public string cinvdefine2 { get; set; }
        public string cinvdefine3 { get; set; }
        /// <summary>
        /// 是否折扣
        /// </summary>
        public bool? binvtype { get; set; } = false;
        public float? iinvmpcost { get; set; }
        public string cquality { get; set; }
        public float? iinvsalecost { get; set; }
        public float? iinvscost1 { get; set; }
        public float? iinvscost2 { get; set; }
        public float? iinvscost3 { get; set; }
        /// <summary>
        /// 建档人
        /// </summary>
        public string ccreateperson { get; set; }
        /// <summary>
        /// 变更人
        /// </summary>
        public string cmodifyperson { get; set; }
        /// <summary>
        /// 变更日期
        /// </summary>
        public DateTime? dmodifydate { get; set; }
        public float? fsubscribepoint { get; set; }
        public float? fvagquantity { get; set; }
        public string cvaluetype { get; set; }
        /// <summary>
        /// 是否为固定换算率
        /// </summary>
        public bool? bfixexch { get; set; } = false;
        public float? foutexcess { get; set; }
        public float? finexcess { get; set; }
        public int? imassdate { get; set; }
        public int? iwarndays { get; set; }
        public float? fexpensesexch { get; set; }
        /// <summary>
        /// 是否出库跟踪入库
        /// </summary>
        public bool? btrack { get; set; } = false;
        /// <summary>
        /// 是否有序列号管理
        /// </summary>
        public bool? bserial { get; set; } = false;
        /// <summary>
        /// 是否条形码管理
        /// </summary>
        public bool? bbarcode { get; set; } = false;
        public int? iid { get; set; }
        public string cbarcode { get; set; }
        public string cinvdefine4 { get; set; }
        public string cinvdefine5 { get; set; }
        public string cinvdefine6 { get; set; }
        public string cinvdefine7 { get; set; }
        public string cinvdefine8 { get; set; }
        public string cinvdefine9 { get; set; }
        public string cinvdefine10 { get; set; }
        public string cinvdefine11 { get; set; }
        public string cinvdefine12 { get; set; }
        public string cinvdefine13 { get; set; }
        public string cinvdefine14 { get; set; }
        public string cinvdefine15 { get; set; }
        public string cinvdefine16 { get; set; }
        /// <summary>
        /// 计量单位组类别
        /// </summary>
        public int? igrouptype { get; set; }
        /// <summary>
        /// 计量单位组编码 
        /// </summary>
        public string cgroupcode { get; set; }
        /// <summary>
        /// 主计量单位编码
        /// </summary>
        public string ccomunitcode { get; set; }
        public string casscomunitcode { get; set; }
        public string csacomunitcode { get; set; }
        public string cpucomunitcode { get; set; }
        public string cstcomunitcode { get; set; }
        public string ccacomunitcode { get; set; }
        public string cfrequency { get; set; }
        public int? ifrequency { get; set; }
        public int? idays { get; set; }
        public DateTime? dlastdate { get; set; }
        public float? iwastage { get; set; }
        /// <summary>
        /// 是否单独存放
        /// </summary>
        public bool? bsolitude { get; set; } = false;
        public string centerprise { get; set; }
        public string caddress { get; set; }
        public string cfile { get; set; }
        public string clabel { get; set; }
        public string ccheckout { get; set; }
        public string clicence { get; set; }
        /// <summary>
        /// 是否特殊药品
        /// </summary>
        public bool? bspecialties { get; set; } = false;
        public string cdefwarehouse { get; set; }
        public float? ihighprice { get; set; }
        public float? iexpsalerate { get; set; }
        public string cpricegroup { get; set; }
        public string coffergrade { get; set; }
        public float? iofferrate { get; set; }
        public string cmonth { get; set; }
        public int? iadvancedate { get; set; }
        public string ccurrencyname { get; set; }
        public string cproduceaddress { get; set; }
        public string cproducenation { get; set; }
        public string cregisterno { get; set; }
        public string centerno { get; set; }
        public string cpackingtype { get; set; }
        public string cenglishname { get; set; }
        /// <summary>
        /// 是否质检
        /// </summary>
        public bool? bpropertycheck { get; set; } = false;
        public string cpreparationtype { get; set; }
        public string ccommodity { get; set; }
        /// <summary>
        /// 处方药或非处方药
        /// </summary>
        public int? irecipebatch { get; set; } = 0;
        public string cnotpatentname { get; set; }
        public string pubufts { get; set; }
        /// <summary>
        /// 是否促销品
        /// </summary>
        public bool? bpromotsales { get; set; } = false;
        public int? iplanpolicy { get; set; }
        public int? iropmethod { get; set; }
        public int? ibatchrule { get; set; }
        public float? fbatchincrement { get; set; }
        public int? iassureprovidedays { get; set; }
        public int? iteststyle { get; set; }
        public int? idtmethod { get; set; }
        public float? fdtrate { get; set; }
        public float? fdtnum { get; set; }
        public string cdtunit { get; set; }
        public int? idtstyle { get; set; }
        public int? iqtmethod { get; set; }
        public string pictureguid { get; set; }
        public string cproductunit { get; set; }
        public float? forderuplimit { get; set; }
        public string cmassunit { get; set; }
        public float? fretailprice { get; set; }
        public string cinvdepcode { get; set; }
        public int? ialteradvance { get; set; }
        public float? falterbasenum { get; set; }
        /// <summary>
        /// 计划方法
        /// </summary>
        public string cplanmethod { get; set; } = "L";
        /// <summary>
        /// MPS件
        /// </summary>
        public bool? bmps { get; set; } = false;
        /// <summary>
        /// ROP件
        /// </summary>
        public bool? brop { get; set; } = false;
        /// <summary>
        /// 是否重复计划
        /// </summary>
        public bool? breplan { get; set; } = false;
        /// <summary>
        /// 供需政策
        /// </summary>
        public string csrpolicy { get; set; } = "PE";
        /// <summary>
        /// 是否令单合并
        /// </summary>
        public bool? bbillunite { get; set; } = false;
        public int? isupplyday { get; set; }
        public float? fsupplymulti { get; set; }
        public float? fminsupply { get; set; }
        /// <summary>
        /// 是否切除尾数 
        /// </summary>
        public bool? bcutmantissa { get; set; } = false;
        public string cinvpersoncode { get; set; }
        public int? iinvtfid { get; set; }
        public string cengineerfigno { get; set; }
        /// <summary>
        /// 成本累计否
        /// </summary>
        public bool? bintotalcost { get; set; } = true;
        /// <summary>
        /// 供应类型
        /// </summary>
        public int? isupplytype { get; set; }
        /// <summary>
        /// 结构性自由项1
        /// </summary>
        public bool? bconfigfree1 { get; set; } = false;
        /// <summary>
        /// 结构性自由项2
        /// </summary>
        public bool? bconfigfree2 { get; set; } = false;
        /// <summary>
        /// 结构性自由项3
        /// </summary>
        public bool? bconfigfree3 { get; set; } = false;
        /// <summary>
        /// 结构性自由项4
        /// </summary>
        public bool? bconfigfree4 { get; set; } = false;
        /// <summary>
        /// 结构性自由项5
        /// </summary>
        public bool? bconfigfree5 { get; set; } = false;
        /// <summary>
        /// 结构性自由项6
        /// </summary>
        public bool? bconfigfree6 { get; set; } = false;
        /// <summary>
        /// 结构性自由项7
        /// </summary>
        public bool? bconfigfree7 { get; set; } = false;
        /// <summary>
        /// 结构性自由项8
        /// </summary>
        public bool? bconfigfree8 { get; set; } = false;
        /// <summary>
        /// 结构性自由项9
        /// </summary>
        public bool? bconfigfree9 { get; set; } = false;
        /// <summary>
        /// 结构性自由项10
        /// </summary>
        public bool? bconfigfree10 { get; set; } = false;
        public int? idtlevel { get; set; }
        public string cdtaql { get; set; }
        /// <summary>
        /// 是否周期检验
        /// </summary>
        public bool? bperioddt { get; set; } = false;
        public string cdtperiod { get; set; }
        public int? ibigmonth { get; set; }
        public int? ibigday { get; set; }
        public int? ismallmonth { get; set; }
        public int? ismallday { get; set; }
        /// <summary>
        /// 是否发货检验
        /// </summary>
        public bool? boutinvdt { get; set; } = false;
        /// <summary>
        /// 是否退货检验 
        /// </summary>
        public bool? bbackinvdt { get; set; } = false;

        public int? ienddtstyle { get; set; }
        /// <summary>
        /// 保质期存货是否检验
        /// </summary>
        public bool? bdtwarninv { get; set; } = false;
        public float? fbacktaxrate { get; set; }
        public string cciqcode { get; set; }
        public string cwgroupcode { get; set; }
        public string cwunit { get; set; }
        public float? fgrossw { get; set; }
        public string cvgroupcode { get; set; }
        public string cvunit { get; set; }
        public float? flength { get; set; }
        public float? fwidth { get; set; }
        public float? fheight { get; set; }
        public int? idtucounter { get; set; }
        public int? idtdcounter { get; set; }
        public int? ibatchcounter { get; set; }
        /// <summary>
        /// 零售计量单位
        /// </summary>
        public string cshopunit { get; set; }
        public string cpurpersoncode { get; set; }
        /// <summary>
        /// 是否进口药品
        /// </summary>
        public bool? bimportmedicine { get; set; } = false;
        /// <summary>
        /// 是否首营药品
        /// </summary>
        public bool? bfirstbusimedicine { get; set; } = false;
        /// <summary>
        /// 预测展开
        /// </summary>
        public bool? bforeexpland { get; set; } = false;
        public string cinvplancode { get; set; }
        /// <summary>
        /// 转换因子
        /// </summary>
        public float? fconvertrate { get; set; } = 1;
        public string dreplacedate { get; set; }
        /// <summary>
        /// 模型
        /// </summary>
        public bool? binvmodel { get; set; } = false;
        /// <summary>
        /// 领料是否切除尾数
        /// </summary>
        public bool? bkccutmantissa { get; set; } = false;
        /// <summary>
        /// 来料须依据检验结果入库
        /// </summary>
        public bool? breceiptbydt { get; set; } = false;
        /// <summary>
        /// 进项税率
        /// </summary>
        public float? iimptaxrate { get; set; } = 17;
        public float? iexptaxrate { get; set; }
        public float idrawbatch { get; set; }
        /// <summary>
        /// 检查售前ATP 
        /// </summary>
        public bool? bcheckbsatp { get; set; } = false;
        public string cinvprojectcode { get; set; }
        public int? itestrule { get; set; }
        public string crulecode { get; set; }
        /// <summary>
        /// 核算自由项1
        /// </summary>
        public bool? bcheckfree1 { get; set; } = false;
        /// <summary>
        /// 核算自由项2
        /// </summary>
        public bool? bcheckfree2 { get; set; } = false;
        /// <summary>
        /// 核算自由项3
        /// </summary>
        public bool? bcheckfree3 { get; set; } = false;
        /// <summary>
        /// 核算自由项4
        /// </summary>
        public bool? bcheckfree4 { get; set; } = false;
        /// <summary>
        /// 核算自由项5
        /// </summary>
        public bool? bcheckfree5 { get; set; } = false;
        /// <summary>
        /// 核算自由项6
        /// </summary>
        public bool? bcheckfree6 { get; set; } = false;
        /// <summary>
        /// 核算自由项7
        /// </summary>
        public bool? bcheckfree7 { get; set; } = false;
        /// <summary>
        /// 核算自由项8
        /// </summary>
        public bool? bcheckfree8 { get; set; } = false;
        /// <summary>
        /// 核算自由项9
        /// </summary>
        public bool? bcheckfree9 { get; set; } = false;
        /// <summary>
        /// 核算自由项10
        /// </summary>
        public bool? bcheckfree10 { get; set; } = false;
        /// <summary>
        /// 允许BOM母件
        /// </summary>
        public bool? bbommain { get; set; } = true;
        /// <summary>
        /// 允许BOM子件
        /// </summary>
        public bool? bbomsub { get; set; } = true;
        /// <summary>
        /// 允许生产订单
        /// </summary>
        public bool? bproductbill { get; set; } = true;
        /// <summary>
        /// 检查ATP 
        /// </summary>
        public int? icheckatp { get; set; } = 0;
        public int? iinvatpid { get; set; }
        public int? iplantfday { get; set; }
        public int? ioverlapday { get; set; }
        /// <summary>
        /// 计件
        /// </summary>
        public bool? bpiece { get; set; } = false;
        /// <summary>
        /// 服务项目
        /// </summary>
        public bool? bsrvitem { get; set; } = false;
        /// <summary>
        /// 服务配件 
        /// </summary>
        public bool? bsrvfittings { get; set; } = false;
        public float? fmaxsupply { get; set; }
        public float? fminsplit { get; set; }
        /// <summary>
        /// 客户订单专用
        /// </summary>
        public bool? bspecialorder { get; set; } = false;
        /// <summary>
        /// 销售跟单
        /// </summary>
        public bool? btracksalebill { get; set; } = false;
        public string cinvmnemcode { get; set; }
        /// <summary>
        /// 计划默认属性 
        /// </summary>
        public int? iplandefault { get; set; }
        /// <summary>
        /// 流转卡批量
        /// </summary>
        public float? ipfbatchqty { get; set; } = 1;
        /// <summary>
        /// 子件用料打印精度 
        /// </summary>
        public int? iallocateprintdgt { get; set; } = 4;
        /// <summary>
        /// 批次核算
        /// </summary>
        public bool? bcheckbatch { get; set; } = false;
        /// <summary>
        /// 管理旧件
        /// </summary>
        public bool? bmngoldpart { get; set; } = false;
        public int? ioldpartmngrule { get; set; }

        public int? iDrawType { get; set; }

        public bool? bInvAsset { get; set; } = false;
        

    }

} 
